package com.mujin.keji.collectionsystem.module.main.views;

import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.mujin.keji.collectionsystem.R;
import com.mujin.keji.collectionsystem.base.BaseFragment;
import com.mujin.keji.collectionsystem.common.CommonPagerAdapter;
import com.mujin.keji.collectionsystem.module.main.adapter.ViewPagerIndicator;
import com.mujin.keji.collectionsystem.module.main.viewmodel.AdvertiseViewModel;
import com.mujin.keji.collectionsystem.module.message.dto.MsgDetail;
import com.mujin.keji.collectionsystem.module.message.viewmodel.MsgViewModel;
import com.mujin.keji.collectionsystem.module.message.views.MessageActivity;
import com.mujin.keji.collectionsystem.module.outboundtask.views.OutBoundtaskListActivity;
import com.mujin.keji.collectionsystem.module.updata.views.UpLoadAllUserDataActivity;
import com.mujin.keji.collectionsystem.utils.EmptyUtils;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.api.RefreshLayout;
import com.scwang.smartrefresh.layout.listener.OnRefreshListener;

import java.util.ArrayList;
import java.util.List;

/**
 * 主页面左边fragment碎片
 *
 * @author weishixiong
 * @Time 2018-03-19
 */
public class TestOneFragment extends BaseFragment implements View.OnClickListener {
    private RelativeLayout rlLogin;
    private TextView tvLogin;


    @Override
    public void onClick(View view) {

    }

    @Override
    protected void loadData() {

    }

    @Override
    protected void createViewModel() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_login;
    }

    @Override
    protected void initView(View view, Bundle savedInstanceState) {

        rlLogin = (RelativeLayout)view. findViewById(R.id.rl_login);
        tvLogin = (TextView) view.findViewById(R.id.tv_login);

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {
        rlLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getmActivity(),OutBoundtaskListActivity.class));
            }
        });
    }
}
